package com.simple.chinagpay.api;

import okhttp3.ResponseBody;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

import java.util.Map;

/**
 * @author yasud
 * @date 2021年03月09日 11:01
 * @description
 **/
public interface TradeApi {


    @POST("/api/v2/standard/query/order/orderQuery")
    @Headers({
            HttpHeaders.CONTENT_TYPE + ": " + MediaType.APPLICATION_JSON_VALUE
    })
    Call<ResponseBody> query(@Body Map<String, Object> map);

    @POST("/api/v2/standard/refund/doRefund")
    @Headers({
            HttpHeaders.CONTENT_TYPE + ": " + MediaType.APPLICATION_JSON_VALUE
    })
    Call<ResponseBody> refund(@Body Map<String, Object> map);
}
